﻿using SHZY.Common.Const;
using SqlSugar;

namespace SHZY.Business.Entitys.WMS.Entity;

/// <summary>
/// 盘点记录实体.
/// </summary>
[SugarTable("wms_busi_check_record", "盘点记录")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiCheckRecordEntity
{
    /// <summary>
    /// GUID.
    /// </summary>
    [SugarColumn(ColumnName = "F_Id", ColumnDescription = "GUID", IsPrimaryKey = true)]
    public string Id { get; set; }

    /// <summary>
    /// 主表guid.
    /// </summary>
    [SugarColumn(ColumnName = "F_MstrId", ColumnDescription = "主表guid")]
    public string MstrId { get; set; }

    /// <summary>
    /// 主表单号.
    /// </summary>
    [SugarColumn(ColumnName = "F_No", ColumnDescription = "主表单号")]
    public string No { get; set; }

    /// <summary>
    /// 标签.
    /// </summary>
    [SugarColumn(ColumnName = "F_Barcode", ColumnDescription = "标签")]
    public string Barcode { get; set; }

    /// <summary>
    /// 物料id.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialId", ColumnDescription = "物料id")]
    public string MaterialId { get; set; }

    /// <summary>
    /// 物料code.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode", ColumnDescription = "物料code")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 物料名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialName", ColumnDescription = "物料名称")]
    public string MaterialName { get; set; }

    /// <summary>
    /// Site.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site", ColumnDescription = "Site")]
    public string Site { get; set; }

    /// <summary>
    /// 盘点数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty", ColumnDescription = "盘点数量")]
    public decimal Qty { get; set; }

    /// <summary>
    /// 库位id.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationId", ColumnDescription = "库位id")]
    public string LocationId { get; set; }

    /// <summary>
    /// 库位code.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationCode", ColumnDescription = "库位code")]
    public string LocationCode { get; set; }

    /// <summary>
    /// 库位名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationName", ColumnDescription = "库位名称")]
    public string LocationName { get; set; }

    /// <summary>
    /// 批次号.
    /// </summary>
    [SugarColumn(ColumnName = "F_BatchNo", ColumnDescription = "批次号")]
    public string BatchNo { get; set; }

    /// <summary>
    /// 盘点类型：0 大盘点 1 周期盘点.
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckType", ColumnDescription = "盘点类型：0 大盘点 1 周期盘点")]
    public int? CheckType { get; set; }

    /// <summary>
    /// 差异数据.
    /// </summary>
    [SugarColumn(ColumnName = "F_DifferQuantity", ColumnDescription = "差异数据")]
    public decimal DifferQuantity { get; set; }

    /// <summary>
    /// 差异比列.
    /// </summary>
    [SugarColumn(ColumnName = "F_DifferScale", ColumnDescription = "差异比列")]
    public decimal DifferScale { get; set; }

    /// <summary>
    /// 系统比列.
    /// </summary>
    [SugarColumn(ColumnName = "F_SystemScale", ColumnDescription = "系统比列")]
    public decimal SystemScale { get; set; }

    /// <summary>
    /// 误差范围内  0:是  1:否.
    /// </summary>
    [SugarColumn(ColumnName = "F_IsSystemScanle", ColumnDescription = "误差范围内  0:是  1:否")]
    public int? IsSystemScanle { get; set; }

    /// <summary>
    /// 扫描次数.
    /// </summary>
    [SugarColumn(ColumnName = "F_ScanQty", ColumnDescription = "扫描次数")]
    public int? ScanQty { get; set; }

    /// <summary>
    /// 创建人.
    /// </summary>
    [SugarColumn(ColumnName = "F_CreatorUserId", ColumnDescription = "创建人")]
    public string CreatorUserId { get; set; }

    /// <summary>
    /// 创建时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_CreatorTime", ColumnDescription = "创建时间")]
    public DateTime? CreatorTime { get; set; }

    /// <summary>
    /// 更新人.
    /// </summary>
    [SugarColumn(ColumnName = "F_LastModifyUserId", ColumnDescription = "更新人")]
    public string LastModifyUserId { get; set; }

    /// <summary>
    /// 更新时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_LastModifyTime", ColumnDescription = "更新时间")]
    public DateTime? LastModifyTime { get; set; }

    /// <summary>
    /// 有效标志0无效 1有效.
    /// </summary>
    [SugarColumn(ColumnName = "F_EnabledMark", ColumnDescription = "有效标志0无效 1有效")]
    public int? EnabledMark { get; set; }

    /// <summary>
    /// 删除标志1删除.
    /// </summary>
    [SugarColumn(ColumnName = "F_DeleteMark", ColumnDescription = "删除标志1删除")]
    public int? DeleteMark { get; set; }

    /// <summary>
    /// 删除时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_DeleteTime", ColumnDescription = "删除时间")]
    public DateTime? DeleteTime { get; set; }

    /// <summary>
    /// 删除用户.
    /// </summary>
    [SugarColumn(ColumnName = "F_DeleteUserId", ColumnDescription = "删除用户")]
    public string DeleteUserId { get; set; }

    /// <summary>
    /// 盘点数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_ActualQuantity", ColumnDescription = "实际数量")]
    public decimal ActualQuantity { get; set; }
}
